package com.jsb.laundry.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(description = "邀请人实体")
public class Promotion {
    @ApiModelProperty("新用户id")
    private String userId;
    @ApiModelProperty("邀请人id")
    private String appUserId;
    @ApiModelProperty("用户名")
    private String userName;
    @ApiModelProperty("用户头像")
    private String userAvatar;
    @ApiModelProperty("邀请时间")
    @JsonFormat(pattern = "yyyy/MM/dd")
    private Date invitationTime;
    @ApiModelProperty("排名id")
    private Integer listId;
    @ApiModelProperty("打败用户")
    private Integer killNumber;
    private Integer allUser;
    @ApiModelProperty("新人购买优惠券，是否给过邀请人奖励（0：没有。1：给过）")
    private String giveAppUserReward;

}
